﻿using SimpleSaas.Common.DataBase;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;

namespace SimpleSaas.Entity
/// <summary>
/// 版 本 钢易智企2.0 V 2.0.0 钢易智企2.0
/// Copyright (c) 2023 杭州钢易科技有限公司
/// 创建人：曾东明
/// 日 期：2024
/// 描 述：
/// </summary>
{
	[SugarTable("sys_user_table")]
	public class SysUserEntity : ComplexEntity<long>
	{
		/// <summary>
		/// 用户姓名
		/// </summary>
		[SugarColumn(ColumnName = "user_name")]
		public string UserName { get; set; }
		/// <summary>
		/// 账号
		/// </summary>

		[SugarColumn(ColumnName = "account")]
		public string Account { get; set; }

		/// <summary>
		/// 电话
		/// </summary>

		[SugarColumn(ColumnName = "phone_number")]
		public string PhoneNumber { get; set; }
		/// <summary>
		/// 密码
		/// </summary>
		[SugarColumn(ColumnName = "password_salt")]
		public string PasswordSalt { get; set; }

		/// <summary>
		///  密码hash
		/// </summary>
		[SugarColumn(ColumnName = "password_hash")]
		public string PasswordHash { get; set; }

		/// <summary>
		///  是否是管理员
		/// </summary>

		[SugarColumn(ColumnName = "admin_flag")]
		public bool AdminFlag { get; set; }

		/// <summary>
		///  tenantId
		/// </summary>

		[SugarColumn(ColumnName = "tenant_id")]
		public long TenantId { get; set; }
	}
}